﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DA_OOMModel;
using DA_OOMDALFactory;
using DA_OOMModelIDAL;

namespace DaCredito
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            Estado newCustomer = new Estado();
           

            newCustomer.EstadoPK = new EstadoPK();
            newCustomer.EstNmEstado = "teste";
            newCustomer.EstSgEstado = "AM";
           
            //ConcreteDALFactory daoFactory = new ConcreteDALFactory();
            IEstadoDAL customerDao = ConcreteDALFactory.CreateEstadoDAL();

           
            customerDao.Insert(newCustomer);
               
            

        }
    }
}
